﻿<%@ page  import="java.util.*"  contentType="text/html; charset=UTF-8" %>
<% 
String path = request.getContextPath(); //解决相对路径问题
String errorMsg=((String)request.getAttribute("$errorMsg$")) == null?"":((String)request.getAttribute("$errorMsg$"));

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>1111</title>  

<style type="text/css">

.bgImage {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: -1000;
    height: 100% !important;
    overflow: hidden;
}
.content {
    width: 465px;
    height: 355px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -177px;
    margin-left: -233px;
    text-align: center;
    font-size: 0px;
}
.content_01
{
	width:100%;
	font-size: 40px;
	color:#3c6e95;
	width: 85%;
	margin: 0px auto 35px auto;
}
.content_02 input
{
	height:45px;
	line-height: 45px;
	margin:10px 0;
	border:none;
	font-size: 20px;
	vertical-align: middle;
	color:#299df4;
}
.content_02_label
{
	font-size: 22px;
	height:45px;
	line-height: 45px;
	display:inline-block;
	background: #fff;
	vertical-align: middle;
	color:#299df4;
}
</style>
<link href="/styles/index.css" rel="stylesheet" type="text/css" /> 
<script type="text/javascript">
function checklogin(){
var f=document.form01;
if (f.user_id.value==""){
	
	f.user_id.focus();
	alert("请输入账号!");
	return false;
	}else if(f.password.value==""){
	

	alert("请输入密码!");	
	return false;
	}else{
		f.submit();
	}
}
function ReloadPic(imgID,src)
{
    var oImg;
    var code = Math.round((Math.random()) * 100000000);
    oImg = document.getElementById(imgID);
    var new_src = src;
    if(new_src.indexOf('?') > 0){
	    new_src = src.split('?');
	    new_src = new_src[0];
    }
    oImg.src = new_src + "?"+code;
}
function keyDown()
{
	 if(event.keyCode==13)
	 {
	    document.form01.submit();
	 }
}
document.onkeydown=keyDown;
function checkIt(){
	var url=location.href;
	var para=url.split("?");
	var errorMsg='<%=errorMsg%>';
	if(para.length>1){
		type=para[1].split("type=")[1];
		this.href=para[0];
		if(type==1){
			alert("使用有效期已过，请续费！");
		}else if(type==2){
			alert("请输入验证码！");
		}else if(type==3){
			alert("验证码错误，请重新输入！");
		}else if(type==4){
			alert("登录失败! 用户不存在或密码错误!");
		}else if(type==5){
		    alert("用户已锁定！请及时联系管理员");
		}else if(type==6){
		    alert("用户连续输入密码错误达到上限，用户被锁定！");
		}else if(type==7){
		    alert("用户GMP资质有效期已经过期！");
		}else if(type==8){
		    alert("密码已过期！");
		}else if(type==9){
		    alert("用户已停用！");
		}else if(type==10){
		    alert("用户没有GMP资质！");
		}else if(type==11){
		    alert("基础配置未完成，请管理员先完成基础配置！");
		}else if(type==12){
			window.open('<c:url value="modify_password.faces"/>','','300px','200px');
			//event.cancelBubble=true;showdiv(this,'modify_password.faces','incomingMaterialAction','supplierId','')
		}else if(type==13){
		   alert("非正常登录，请从客户端进入！");
		   window.open('','_parent','');
		   window.close();
		   return false;
		}else if(type=14){
		    alert("该注册码已经有用户在使用！");
		    window.open('','_parent','');
		    window.close();
		    return false;
		}else if(type=15){
		    alert("该注册码不存在!");
		    window.open('','_parent','');
		    window.close();
		     return false;
		}
		window.open(para[0],'_self');
	}
}
</script>
</head>
<body onload="checkIt();">
<div class="bgImage">
	<img src="img/1.jpg" alt="">
</div>
<div class='wrapper'>
    <div class='header'>
        <div class='header_01'>
        <div class='header_01_01'>
                <a href='javascript:void(0)'>
                    <img src='<%=path%>/images/new/dflLogo.png' />
                </a>
            </div>
            
        </div>
        <div class='header_02'> 
            <a class="active" href='login_zh.jsp'>Chinese</a>
            <a href='login_en.jsp'>English</a>
        </div>
    </div>
    <div class='content' style="margin-top: -187px;">
        <p class='content_01'style="width:85%;">
        <img src='<%=path%>/images/new/ZI.png' />
        </p>
        <div class='content_02'>
            <form method='post' action="<%=path %>/LoginServlet" onsubmit="return checklogin()">
                <div>
                    <label for='content_02_01_name' class='content_02_label content_02_label_01'>&nbsp;帐号:</label>
                    <input type='text' class='content_02_01' name="user_id" id="zd_name" />
                </div>
                <p>
                    <label for='content_02_01_password' class='content_02_label content_02_label_02'>&nbsp;密码:</label>
                    <input type='password' class='content_02_01' name="password" id="zd_name02"  value=""  size="25"  msg="请输入密码!"/>
                </p>
               <div>
                  <!--</div>
                <div class='content_02_07'>
                    <div class='content_02_07_01'>
                        <label for='content_02_01_vailCod' class='content_02_label content_02_label_03'>&nbsp;验证码:
                        </label>
                        <input type='text' class='content_02_04' 
                        name="user_verify"  id="zd_name03" />
                    </div>
                    <span class='content_02_05'><img style="cursor:hand" align="bottom" height="45px" width="120px" id="MzImgExpPwd" src="authImg" onclick="javascript:ReloadPic('MzImgExpPwd','authImg')"/></span>
                    <div class='clear'></div>
                </div>-->
                <!-- <input type="hidden" name="companyType" id="companyType" value="99" /> -->
                <input type="hidden" name="user_verify" id="zd_name03" value="8888" />

                <div class='clear'></div>
                <div class='content_02_03'>
                    <input type='reset' value='清除' 
                    class='content_02_02 content_02_02_clear' id='content_02_02_clear'/>
                    <input type='submit' value='登录' 
                    class='content_02_02 content_02_02_submit' id='content_02_02_submit'/>
                    <div class='clear'></div>
                </div>
            </form>
                  </div>
    </div>
    
    <!--软键盘-->
    <div id="softkey"></div>

    <div class='footer'>
        <p class='footer_01'>版本号：V3.3.0</p>
    </div>
</div>

<script type="text/javascript" src="scripts/index_form_vail.js"></script>
<script type="text/javascript" src="scripts/zyf_common.js"></script>

</body>
</html>
